package com.pipi.biyesheji.dao.manager;

import com.pipi.biyesheji.dao.support.PageResult;
import com.pipi.biyesheji.dao.model.PermissionDO;
import com.pipi.biyesheji.dao.query.PermissionQuery;

import java.util.List;


/**
 * Manager for Permission.
 */
public interface PermissionManager {
    /**
     * query count by query condition.
     */
    int countByQuery(PermissionQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(PermissionQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(PermissionDO record);

    /**
     * select by query condition.
     */
    List<PermissionDO> selectByQuery(PermissionQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<PermissionDO> selectByQueryWithPage(PermissionQuery query);

    /**
     * select by primary key.
     */
    PermissionDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( PermissionDO record,  PermissionQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(PermissionDO record, PermissionQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(PermissionDO record);
}